//
//  WWMarginButton.m
//  快医
//
//  Created by 张湾湾 on 16/7/8.
//
//

#import "WWMarginButton.h"

@implementation WWMarginButton

- (void)layoutSubviews{
    [super layoutSubviews];
    
    [self.imageView makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.leading.equalTo(5);
 
    }];
    
    [self.titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.imageView.top);

    }];
    self.titleLabel.xhr_X = CGRectGetMaxX(self.imageView.frame) + 10;
  
    
}
 @end
